package com.myx.service.news;

import com.myx.pojo.News;

import java.util.List;

public interface NewsService {
    //分页查询新闻列表
    //currentNo当前页码
    //pageSize页容量
    public List<News> getNewsListPages(Integer currentNo,Integer pageSize);

    public News getNewsById(int newsId);

    public List<News> getNewsListPagesByCategoryId(Integer categoryId, Integer currentNo, Integer pageSize);

    boolean addNews(News news);

    boolean modifyNews(News news);

    boolean deleteNews(Integer newsId);

    List<News> getNewsListPagesByTitle(String title, Integer currentPageNo, Integer pageSize);
}
